package com.xxh.dasongapp.common.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xxh.dasongapp.common.entity.common.BaseEntity;
import com.xxh.dasongapp.common.validgroup.Insert;
import com.xxh.dasongapp.common.validgroup.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_notice")
@ApiModel(value="公告",description="公告")
public class NoticePARAM  implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "公告id")
    private String id;

    @NotEmpty(message = "内容不能为空",groups = Insert.class)
    @ApiModelProperty(value = "公告内容")
    private String content;

}
